home *** CD-ROM | disk | FTP | other *** search
/ Hunter 2006 / Hunter 2006.iso / soft / sleipnir241.exe / {app} / scripts / ƒy[ƒWˆ— / ƒCƒ[ƒW‰ðÍ.js next >
Text File  |  2006-06-15  |  2KB  |  60 lines

  1. /*==========================================================
  2. Script by jin-ren
  3. ü@âCâüü[âWë≡É═
  4. ü@âyü[âWÅπé╠ëµæ£é≡âèâXâgâAâbâvé╡é▄é╖
  5.                                                 2002/09/08
  6. ==========================================================*/
  7. var obj, document, id, ndoc, nid, atag ,str, x;
  8.  
  9. obj = new ActiveXObject("Sleipnir.API");
  10. id = obj.GetDocumentID(obj.ActiveIndex);
  11. document = obj.GetDocumentObject(id);
  12.  
  13. if (document == null)
  14. {
  15.   obj.MessageBox("Document é≡ì∞ɼé┼é½é▄é╣é±");
  16. }
  17. else
  18. {
  19.   str ="<html>\n";
  20.   str+="<head>\n<title>âèâôâNë≡É═</title>\n";
  21.   str+="<style>";
  22.   str+="th{font:bold 12px;background-color:#cccccc;}";
  23.   str+="td{font:10px;}";
  24.   str+="</style>";
  25.   str+="</head>";
  26.   str+="<body>\n";
  27.   str+="<table border=1>";
  28.   str+="<tr>";
  29.   str+="  <th>âCâüü[âW</th>";
  30.   str+="  <th>src</th>";
  31.   str+="  <th>width</th>";
  32.   str+="  <th>height</th>";
  33.   str+="</tr>\n";
  34.   atag=document.all.tags("IMG");
  35.   for(i in atag){
  36.     x = atag[i].src;
  37.     if(x==null){continue;}
  38.     x="<img src="+atag[i].src+"><br>"+x;
  39.     x=x.link(x);
  40.     str+="<tr>\n";
  41.     str+="  <td>"+atag[i].alt+"<br></td>";
  42.     str+="  <td>"+x+"<br></td>";
  43.     str+="  <td>"+atag[i].width+"<br></td>";
  44.     str+="  <td>"+atag[i].height+"<br></td>";
  45.     str+="</tr>\n";
  46.   };
  47.   str+="</table>\n";
  48.   str+="</body>\n";
  49.   str+="</html>\n";
  50.  
  51.   nid = obj.NewWindow("about:blank",true);
  52.   ndoc = obj.GetDocumentObject(nid);
  53.   ndoc.write(str);
  54.   ndoc.location.reload();
  55.   ndoc = null;
  56.   document = null;
  57. }
  58. obj.beep();
  59. obj = null;
  60.